<!doctype html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" >
    <link rel="stylesheet" href="assets/css/fontawesome.min.css" >
    <link rel="stylesheet" href="assets/css/backend.css" >
    <title>Fresns 管理中心</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fresns-navbar">
      <a class="navbar-brand" href="#"><img src="assets/images/logo.png" height="30" alt="Fresns"></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item"><a class="nav-link" href="index.html">仪表盘</a></li>
          <li class="nav-item active"><a class="nav-link" href="system-language.html">系统</a></li>
          <li class="nav-item"><a class="nav-link" href="operating-user.html">运营</a></li>
          <li class="nav-item"><a class="nav-link" href="themes.html">主题</a></li>
          <li class="nav-item"><a class="nav-link" href="plugins.html">插件</a></li>
          <li class="nav-item"><a class="nav-link" href="clients.html">客户端</a></li>
          <li class="nav-item"><a class="nav-link" href="store.html">应用市场</a></li>
        </ul>
        <span class="navbar-text">admin <a href="#">[退出]</a> <a href="https://fresns.cn" target="_blank">站点首页</a></span>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-xl-2 fresns-sidebar">
          <h3 class="d-none d-sm-block">系统</h3>
          <button class="btn btn-primary btn-block d-block d-sm-none" type="button" data-toggle="collapse" data-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="true">
            <i class="fas fa-list-ul"></i> 系统
          </button>
          <div class="collapse show" id="sidebarNav">
            <ul class="nav flex-column">
              <li class="nav-item"><a class="nav-link" href="system-language.html"><i class="fas fa-language"></i> 语言设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-site.html"><i class="fas fa-tools"></i> 站点设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-send.html"><i class="far fa-paper-plane"></i> 发信设置</a></li>
              <li class="nav-item"><a class="nav-link active" href="system-account.html"><i class="far fa-user"></i> 账号设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-wallet.html"><i class="far fa-credit-card"></i> 钱包设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-storage.html"><i class="far fa-folder-open"></i> 存储设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-map.html"><i class="fas fa-map-marked-alt"></i> 地图设置</a></li>
            </ul>
            <div class="fresns-copyright">
              <p>Powered by Fresns</p>
            </div>
          </div>
        </div>

        <div class="col-sm-9 col-xl-10 fresns-content">
          <h3>账号设置</h3>
          <!-- Setting Start -->
          <form>
            
            <!-- Register Close Setting -->
            <label class="item-title">注册状态：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="register_close_true" name="register_close" value="true" class="custom-control-input" checked>
                  <label class="custom-control-label" for="register_close_true">开放注册</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="register_close_false" name="register_close" value="false" class="custom-control-input">
                  <label class="custom-control-label" for="register_close_false">关闭注册</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">设置是否允许游客注册成为账号账号</label>
            </div>

            <!-- Register select Setting -->
            <label class="item-title">注册功能：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <select class="custom-select" id="register_plugin">
                  <option value="0" selected>默认注册功能</option>
                  <option value="2">xx有奖邀请注册插件</option>
                </select>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">可以配置注册流程由插件处理，仅在站点模式为公开模式时有效</label>
            </div>

            <!-- Register and Login Setting -->
            <label class="item-title">注册支持：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_email">
                  <label class="custom-control-label" for="account_email">电子邮箱</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_phone" checked>
                  <label class="custom-control-label" for="account_phone">手机号</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">多选：选择可用哪种方式注册。</label>
            </div>

            <!-- Login and Login Setting -->
            <label class="item-title">第三方互联支持：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_wechat" checked>
                  <label class="custom-control-label" for="account_wechat">微信快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_qq">
                  <label class="custom-control-label" for="account_qq">QQ 快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_weibo">
                  <label class="custom-control-label" for="account_weibo">微博快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_bytedance">
                  <label class="custom-control-label" for="account_bytedance">字节跳动快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_google">
                  <label class="custom-control-label" for="account_google">Google 快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_facebook">
                  <label class="custom-control-label" for="account_facebook">Facebook 快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_twitter">
                  <label class="custom-control-label" for="account_twitter">Twitter 快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_apple">
                  <label class="custom-control-label" for="account_apple">Apple 快捷登录</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="account_github">
                  <label class="custom-control-label" for="account_github">Github 快捷登录</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">一键注册或者登录，应用市场可以安装更多支持</label>
            </div>
            
            <!-- Password Setting -->
            <label class="item-title">密码长度要求：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <input type="number" class="form-control" id="password_length" value="8">
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">账号设置密码时最小长度，0或不填为不限制</label>
            </div>

            <!-- Password Setting -->
            <label class="item-title">密码强度要求：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="password_strength_0" value="0">
                  <label class="custom-control-label" for="password_strength_0">数字</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="password_strength_1" value="1">
                  <label class="custom-control-label" for="password_strength_1">小写字母</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="password_strength_2" value="2">
                  <label class="custom-control-label" for="password_strength_2">符号</label>
                </div>
                <div class="custom-control custom-checkbox custom-control-inline">
                  <input type="checkbox" class="custom-control-input" id="password_strength_3" value="3">
                  <label class="custom-control-label" for="password_strength_3">大写字母</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">账号设置密码中必须存在所选字符类型，不选则为无限制</label>
            </div>

            <!-- Privacy and Terms Setting -->
            <label class="item-title">账号协议：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input" id="account_terms_close" data-toggle="collapse" data-target="#account_terms_collapse" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="account_terms_close">服务条款</label>
                </div>
                <div class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input" id="account_privacy_close" data-toggle="collapse" data-target="#account_privacy_collapse" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="account_privacy_close">隐私权政策</label>
                </div>
                <div class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input" id="account_cookie_close" data-toggle="collapse" data-target="#account_cookie_collapse" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="account_cookie_close">Cookie 政策</label>
                </div>
                <div class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input" id="account_delete_close" data-toggle="collapse" data-target="#account_delete_collapse" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="account_delete_close">注销说明</label>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">设置账号账号的协议条款</label>
            </div>

            <!-- Terms Setting -->
            <div class="collapse" id="account_terms_collapse">
              <label class="item-title">服务条款：</label>
              <div class="form-group row">
                <div class="col-md-6 col-sm-8">
                  <textarea class="form-control" id="account_terms" rows="6"></textarea>
                </div>
                <label class="col-md-6 col-sm-4 col-form-label">支持 Markdown 语法，支持多语言</label>
              </div>
            </div>

            <!-- Privacy Setting -->
            <div class="collapse" id="account_privacy_collapse">
              <label class="item-title">隐私权政策：</label>
              <div class="form-group row">
                <div class="col-md-6 col-sm-8">
                  <textarea class="form-control" id="account_privacy" rows="6"></textarea>
                </div>
                <label class="col-md-6 col-sm-4 col-form-label">支持 Markdown 语法，支持多语言</label>
              </div>
            </div>

            <div class="collapse" id="account_cookie_collapse">
              <label class="item-title">Cookie 政策：</label>
              <div class="form-group row">
                <div class="col-md-6 col-sm-8">
                  <textarea class="form-control" id="account_cookie" rows="6"></textarea>
                </div>
                <label class="col-md-6 col-sm-4 col-form-label">支持 Markdown 语法，支持多语言</label>
              </div>
            </div>

            <div class="collapse" id="account_delete_collapse">
              <label class="item-title">注销说明：</label>
              <div class="form-group row">
                <div class="col-md-6 col-sm-8">
                  <textarea class="form-control" id="account_delete" rows="6"></textarea>
                </div>
                <label class="col-md-6 col-sm-4 col-form-label">支持 Markdown 语法，支持多语言</label>
              </div>
            </div>

            <!-- Delete Account Setting -->
            <label class="item-title">注销设置：</label>
            <div class="form-group row">
              <div class="col-md-6 col-sm-8">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="delete_account_0" name="delete_account" value="0" class="custom-control-input" checked data-toggle="collapse" data-target="#delete_account_collapse.show" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="delete_account_0">不启用注销功能</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="delete_account_1" name="delete_account" value="1" class="custom-control-input" data-toggle="collapse" data-target="#delete_account_collapse:not(.show)" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="delete_account_1">软注销</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="delete_account_2" name="delete_account" value="2" class="custom-control-input" data-toggle="collapse" data-target="#delete_account_collapse:not(.show)" aria-expanded="false" aria-controls="collapse">
                  <label class="custom-control-label" for="delete_account_2">硬注销</label>
                </div>
                <div class="collapse" id="delete_account_collapse">
                  <div class="input-group mb-3 mt-2">
                    <div class="input-group-prepend">
                      <span class="input-group-text" id="basic-addon1">注销缓冲期</span>
                    </div>
                    <input type="number" class="form-control" value="30">
                    <div class="input-group-append">
                      <span class="input-group-text" id="basic-addon2">天</span>
                    </div>
                  </div>
                  <small id="emailHelp" class="form-text text-muted">从申请注销之日起，多少天内可以中止注销（恢复账号），到期未中止，将正式执行注销流程。</small>
                </div>
              </div>
              <label class="col-md-6 col-sm-4 col-form-label">软注销只是将账号标注为注销，但保留账号的所有数据<br>硬注销将从数据库中删除账号的所有信息</label>
            </div>

            <!-- Form Submit -->
            <button type="submit" class="btn btn-primary">保存</button>
          </form>
          <!-- Setting End -->
        </div>
      </div>
    </div>

    <!-- JavaScript -->
    <script src="assets/js/jquery-3.5.1.slim.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/backend.js"></script>
  </body>
</html>